<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>PHP While Loops</title>
</head>
<body>
<h1>PHP While Loops</h1>
<div>
    <h3>The PHP while Loop</h3>
    <?php
    $x = 1;
    while($x<=5){
        echo("The number is: $x <br>");
        $x++;
    }
    ?>
</div>
<div>
    <h3>The PHP do...while Loop</h3>
    <?php
    $x = 1;

    do {
        echo("The number is: $x <br>");
        $x++;
    } while ($x<=5);
    ?>
</div>
<div>
    <h3>The PHP do...while Loop #1</h3>
    <?php
    $x = 6;

    do {
        echo("The number is: $x <br>");
        $x++;
    } while ($x<=5);
    ?>
</div>
</body>
</html>